﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace _2009035.Models
{
    public class Request {
        public int take { get; set; }
        public int skip { get; set; }
        public int page { get; set; }
        public string employeeNumber { get; set; }
        public List<Sort> sort { get; set; }
        public string searchTerm { get; set; }
        public string searchGender { get; set; }
        public string searchDepartment { get; set; }
        public string searchTitle { get; set; }
        public bool searchOldEmployee { get; set; }
        public string searchDepartmentNumber { get; set; }
        public GridFilter filter { get; set; }
    }

    public class GridFilter
    {
        public string Operator { get; set; }
        public string Field { get; set; }
        public string Value { get; set; }
        public string Logic { get; set; }
        public List<GridFilter> Filters { get; set; }
    }

    public class Sort {
        public string field { get; set; }
        public string dir { get; set; }
    }
}